package com.techsoul.module.pms.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.techsoul.common.core.pojo.vo.UserVo;
import com.techsoul.module.basic.pojo.vo.HrEmployeeManageVo;
import com.techsoul.module.pms.pojo.entity.TbWmsMaterialDeliveryLine;
import com.techsoul.module.pms.pojo.param.TWmsDeliveryPickupPlanSaveParam;
import com.techsoul.module.pms.pojo.param.TWmsDeliveryPickupPlanSearchParam;
import com.techsoul.module.pms.pojo.param.TWmsReciptIntoLocPlanSaveParam;
import com.techsoul.module.pms.pojo.param.TbWmsMaterialDeliveryLineSaveParam;
import com.techsoul.module.pms.pojo.vo.TWmsDeliveryPickupPlanVo;
import com.techsoul.module.pms.pojo.vo.TbWmsMaterialDeliveryLineVo;

import java.util.List;

/**
 * 拣货计划 Service接口
 * 
 * @author liuen
 * @date 2023-03-28
 */
public interface ITWmsDeliveryPickupPlanService {

    /**
     * 新增
     * @param params
     * @return
     */
    String insert(TWmsDeliveryPickupPlanSaveParam params);

    String genPickupPlan();
    int getPickUpJob(String id);
    String genPickupPlanBySelectItem(TWmsDeliveryPickupPlanSaveParam params, String [] ids);
    void createDispatch(HrEmployeeManageVo dispatchuserVo, List<TbWmsMaterialDeliveryLine> needPickUps, UserVo user, String type);
    void createPackingContainer(HrEmployeeManageVo dispatchuserVo,List<TbWmsMaterialDeliveryLine> needPickUps);
    String handlePublish() ;
    /**
     * 删除
     * @param id
     * @return
     */
    Integer delete(String id);

    /**
     * 批量删除
     * @param idList
     */
    Integer batchDelete(List<String> idList);

    /**
     * 修改
     * @param params
     * @return
     */
    Integer update(TWmsDeliveryPickupPlanSaveParam params);
    Integer pickUpAndOutbound(TWmsDeliveryPickupPlanSaveParam params);
    /**
     * 详情
     * @param id
     * @return
     */
    TWmsDeliveryPickupPlanVo findById(String id);

    /**
     * 列表
     * @param params
     * @return
     */
    List<TWmsDeliveryPickupPlanVo> findAll(TWmsDeliveryPickupPlanSearchParam params);

    /**
     * 列表-分页
     * @param params
     * @param current
     * @param pageSize
     * @return
     */
    IPage<TWmsDeliveryPickupPlanVo> findAll(TWmsDeliveryPickupPlanSearchParam params, Integer current, Integer pageSize);

}
